package com.wxmit.ot.exception;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * BaseException
 *
 * @author huangxiong
 * @version V1.0
 * @date 2023/2/24 17:12
 */
@Getter
@Setter
@ToString
public class BaseException extends RuntimeException{

    private String message;

    @ToString.Exclude
    private Throwable cause;

    public BaseException(){
        super();
    }

    public BaseException(String message){
        super(message);
        this.message = message;
    }

    public BaseException(Throwable cause){
        super(cause);
        this.cause = cause;
    }

    public BaseException(String message,Throwable cause){
        super(message,cause);
        this.message = message;
        this.cause = cause;
    }

}
